package com.yvtian;

import com.yvtian.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
//@MapperScan({"com.yvtian.admin.dao", "com.yvtian.inv.dao", "com.yvtian.om.dao", "com.yvtian.pu.dao", "com.yvtian.pm.dao"})
@MapperScan({"com.yvtian.*.dao"})
@EnableAsync
public class YvTianApplication {

    public static void main(String[] args) {
        SpringApplication.run(YvTianApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }

}
